﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true" CodeBehind="RegisterUser.aspx.cs" Inherits="Earworm.Web.Registration.RegisterUser" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">

  
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
    <table style="width: 100%;">
        <tr>
            <td width="25%">
                &nbsp;</td>
            <td>
                <table style="width: 100%;">
                    <tr>
                        <td align="center" colspan="2">
                            <asp:Label ID="Label1" runat="server"
                                Text="Enter registration information below"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblFirst" runat="server" Text="First Name:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtFirst" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                                ControlToValidate="txtFirst"
                                ErrorMessage="First Name Required" ForeColor="Red">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblLast" runat="server" Text="Last Name:"></asp:Label>
                        </td>
                        <td class="style10">
                            <asp:TextBox ID="txtLast" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="txtLast"
                                ErrorMessage="Last Name Required" ForeColor="Red">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblEmail" runat="server" Text="Email:"></asp:Label>
                        </td>
                        <td class="style12">
                            <asp:TextBox ID="txtEmail" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                                ControlToValidate="txtEmail"
                                ErrorMessage="Email Required" ForeColor="Red">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblUser" runat="server" Text="Username:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtUsername" runat="server"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                                ControlToValidate="txtUsername" 
                                ErrorMessage="Username required" ForeColor="Red">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblPass" runat="server" Text="Password:"></asp:Label>
                        </td>
                        <td >
                            <asp:TextBox ID="txtPass" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                                ControlToValidate="txtPass" ErrorMessage="Password Required" 
                                ForeColor="Red">*</asp:RequiredFieldValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lblConfirmPass" runat="server" 
                                Text="Confirm Password:"></asp:Label>
                        </td>
                        <td>
                            <asp:TextBox ID="txtConfirmPass" runat="server" TextMode="Password"></asp:TextBox>
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" 
                                ControlToValidate="txtConfirmPass"
                                ErrorMessage="Must Confirm Password" ForeColor="Red">*</asp:RequiredFieldValidator>
                            <asp:CompareValidator ID="cvPassword" runat="server" ControlToCompare="txtPass" 
                                ControlToValidate="txtConfirmPass" ErrorMessage="Passwords must match" 
                                ForeColor="Red">*</asp:CompareValidator>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="btnBack" runat="server" CausesValidation="False" 
                                PostBackUrl="~/Registration/Login.aspx" Text="Back" />
                        </td>
                        <td>
                            <asp:Button ID="btnRegister" runat="server" Text="RegisterUser" 
                                onclick="btnRegister_Click" />
                        </td>
                    </tr>
                </table>
            </td>
            <td width="25%">
                <asp:ValidationSummary ID="vsRegister" runat="server" ForeColor="Red" 
                     />
            </td>
        </tr>
    </table>
</asp:Content>
